// app/model/friends.js
"use strict";
module.exports = (app) => {
    const crypto = require('crypto');
  const { STRING, INTEGER, DATE, ENUM, TEXT } = app.Sequelize;
  // 配置（重要：一定要配置详细，一定要！！！）
  const Gift = app.model.define("gift", {
    id: {
        type: INTEGER(20),
        primaryKey: true,
        autoIncrement: true,
      },
      name: {
        type: STRING(30),
        allowNull: false,
        defaultValue: "",
        comment: "礼物名称",
      },
      image: {
        type: STRING,
        allowNull: true,
        defaultValue: "",
        comment: "礼物图标",
      },
      coin: {
        type: INTEGER,
        allowNull: false,
        defaultValue: 0,
        comment: "金币",
      },
      created_time: DATE,
      updated_time: DATE,
  });
 
  return Gift;
};